package com.zhitong.money.services.api;

import com.github.pagehelper.PageInfo;
import com.zhitong.money.entity.Permission;

import java.util.List;
import java.util.Map;

public interface IPermissionService {

    public List<Permission> findAllPermission() throws Exception;

    public List<Permission> findPersByRid(String rid) throws Exception;

    public Permission findPermissionById(String id) throws Exception;

    public PageInfo findAllByPage(Map<String,Object> map) throws Exception;

    public List<Permission> findPerByMap(Map<String,Object> map) throws Exception;

    public void addPermission(Permission Permission) throws Exception;

    public void updatePermission(Permission Permission) throws Exception;

    public int delPermission(String id) throws Exception;

    public int delPermissionByIds(List<String> ids) throws Exception;
}
